package com.dev.happy;

import com.dev.happy.swagger.config.SwaggerConfig;
import com.dev.happy.util.SpringBeanUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import;

/**
 * 应用启动器
 *
 * @author caonuoqi
 */
@SpringBootApplication
@Import(SwaggerConfig.class)
public class MainApplication {
    public static void main(String[] args) {
        ApplicationContext app = SpringApplication.run(MainApplication.class, args);
        SpringBeanUtil.setApplicationContext(app);
    }
}
